package com.zheng.upms.rpc.api;

import com.alibaba.fastjson.JSONArray;
import com.zheng.common.base.BaseServiceMock;
import com.zheng.upms.dao.mapper.UpmsUserPermissionMapper;
import com.zheng.upms.dao.model.UpmsUserPermission;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>
 * 用户权限关联表 服务实现降级实现类
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
public class UpmsUserPermissionServiceMock extends BaseServiceMock<UpmsUserPermissionMapper, UpmsUserPermission> implements UpmsUserPermissionService {
    private static Logger _log = LoggerFactory.getLogger(UpmsUserPermissionServiceMock.class);

    @Override
    public int permission(JSONArray systems, JSONArray permissions, Integer userId) {
        _log.info("UpmsUserPermissionServiceMock => permission");
        return 0;
    }
}
